package Homework1;

import java.util.Scanner;

public class Homework1_5 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int judge_n = n;
        int n_ = 0;
        while (judge_n != 0){
            n_ = n_ * 10 + judge_n % 10;
            judge_n /= 10;
        }
        if (n_ == n)
            System.out.println("Yes");
        else if (n_ != n) {
            System.out.println("No");
        }
    }
}
